package org.raytracer.algo;

import java.util.List;

import org.eclipse.swt.graphics.ImageData;
import org.eclipse.swt.graphics.PaletteData;



public class Scene {
	private List<Light> lights;
	private List<Primitive> primitives;
	
	//the width and height of generated image
	private int width,height;
	private ImageData image;
	
	//init scene from file
	public void initScene(String filename)
	{
		width = height = 400;
		image = new ImageData(width,height,24,new PaletteData(0xFF0000,0x00FF,0xFF));
		
		for(int j=0;j<height;j++)
			for(int i=0;i<width;i++)
				image.setPixel(i, j, 0xFF0000);
	}
	
	//render the scene 
	public void render()
	{
		
	}
	
	public ImageData getImage()
	{
		return image;
	}

}
